package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

/**
 * @author LiangTianQi
 * @describe
 * @date 2020/11/9 22:07
 */
public interface SetmealService {

    void add(Setmeal setmeal,Integer[] checkgroupIds);

    boolean delete(Integer id);

    boolean update(Setmeal setmeal,Integer[] checkgroupIds);

    PageResult getByConditions(QueryPageBean queryPageBean);

    Setmeal getById(Integer id);

    List<Integer> getCheckGroupIds(Integer id);

    List<Setmeal> getAll();


    /**
     * 三表联查
     * @return
     */
    Setmeal getByIdMany(Integer id);

    List<Map<String,Object>> getSetmealNameAndOrdercount();
}
